<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //函数默认值
        let fn = ([a, b, c], add = 0) => console.log(add += a + b + c);
        fn([1, 2, 3])

        // 如果实际参数没有那么就用默认值 如果给了实际参数 那么就使用实际参数



    </script>
</body>

</html>